package com.wedo.user.api;

import com.wedo.user.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface UserApi {

    @GetMapping("queryByUsername")
    public User queryByUsernameAndPassword(@RequestParam("username")String username, @RequestParam("password")String password);

    @GetMapping("queryByPhone")
    public User queryByPhoneAndCode(@RequestParam("phone") String phone, @RequestParam("code") String code);

}
